//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package study.IO.字节流;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class test {
    public test() {
    }

    public static void main(String[] args) throws IOException {
        long begin = System.currentTimeMillis();
        FileInputStream inputA = new FileInputStream("JavaTest//Files//image//01.jpg");
        FileOutputStream output = new FileOutputStream("JavaTest//Files//image//01-copy.jpg");
        byte[] bytes = new byte[5242880];

        int len;
        while((len = inputA.read(bytes)) != -1) {
            output.write(bytes, 0, len);
        }

        output.close();
        inputA.close();
        long end = System.currentTimeMillis();
        System.out.println(end - begin);
    }
}
